<%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

	<script src = "../js/jquery-1.12.1.js" type = "text/javascript"></script>
	<script src = "../js/common.js" type = "text/javascript"></script>
	
	<link href="<%=request.getContextPath() %>/css/extremecomponents.css" rel="stylesheet" type="text/css" />
	<link href="<%=request.getContextPath() %>/css/global.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />

<title>努力程度基础数据</title>
</head>
<script type="text/javascript">

	//作业框回显
	$(function() {
	$("select[name='jobId']")
	.val(
	'<c:out value="${CONDITIONMAP.jobId}" />');
	});
	
	//题号框回显
	$(function() {
		var topicId = '${CONDITIONMAP.topicId}';
	$("#topicId").find("option[value='"+topicId+"']").attr("selected",true);
	});

	$(function() {
	$("#lookfor").click(
        function() {
            formPost(window.SearchState, '','studenteffort?ActionType=student_Is_Effort_Data', this);
        });
	});

</script>
<body>
<div id="current">当前位置：学生努力程度分析 &gt; 基础数据</div>
<div class="page-container">

    <form id="SearchState" method="post">
	<div class="text-c"> 
	
		作业:
		<span class="select-box inline">
			<select class="select"  name="jobId" id="jobId">
				<option value="" selected="selected">本次作业</option>
				<c:forEach items="${ALLJOB }"  var="everyJob">
				<option value="${everyJob.job_id }">${everyJob.job_id }</option>
				</c:forEach>
			</select>
		</span>
		题号:
		<span class="select-box inline">
			<select class="select"  name="topicId" id="topicId" >
				<option value="" selected="selected">请选择题目</option>
				<c:forEach items="${ALLTOPIC}"  var="everyTopic">
				<option value="${everyTopic.topic_only_id}">${everyTopic.topic_abstract}</option>
				</c:forEach>
			</select>
		</span>
		姓名:
		<span class="select-box inline">
			 <input name="studentName"  id="studentName"    type="text" size="16"
			  value="<c:out value='${CONDITIONMAP.studentName}' />" />
		</span>
		<input type="hidden" id="" name="">
		<button id="lookfor" type="button" class="btn btn-primary radius">查询</button>
	</div>
	</form>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<!-- <th width="25"><input type="checkbox" name="" value=""></th> -->
					<!-- <th width="105">题号</th> -->
					<th width="105">题目名</th>
					<th width="105">学生学号</th>
					<th width="105">学生姓名</th>
					<th width="105">截止时间提交</th>
					<th width="105">提交情况</th>
					<th width="105">多次提交</th>
					<th width="105">作业完成情况</th>
				</tr>
			</thead>
			<tbody>
					 <c:forEach items="${STUDENTISEFFORTDATA}"  var="currentJob">
					 <tr class="text-c">
	                               <td>${currentJob.topic_abstract}</td>
	                               <td>${currentJob.student_id}</td>
	                               <td>${currentJob.student_name}</td>
	                               <td>
	                               		<c:if test="${currentJob.is_deadline==1}">否</c:if>
	                               		<c:if test="${currentJob.is_deadline==0}">是</c:if>
	                               </td>
	                               <td>
	                               		<c:if test="${currentJob.submit_statu==0}">未交</c:if>
	                               		<c:if test="${currentJob.submit_statu==1}">补交</c:if>
	                               		<c:if test="${currentJob.submit_statu==2}">正常</c:if>
	                               </td>
	                                <td>
	                               		<c:if test="${currentJob.is_many_times_to_submit==0}">否</c:if>
	                               		<c:if test="${currentJob.is_many_times_to_submit==1}">是</c:if>
	                               </td>
	                                <td>
	                               		<c:if test="${currentJob.scorer_index==0}">差</c:if>
	                               		<c:if test="${currentJob.scorer_index==1}">良</c:if>
	                               		<c:if test="${currentJob.scorer_index==2}">优</c:if>
	                               </td>
	                   </tr>
	                  </c:forEach>
			</tbody>
		</table>
	</div>
	
</div>
</body>
</html>